<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <link rel="stylesheet" href="/static/index/layui/css/layui.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:100,300,400,500,700,900">
    <style>
        *{padding:0;margin:0;}
        a{text-decoration: none;color: #0C0C0C;}
        html{font-size:14px;}
        body{background-color:white;min-width: 650px;display: flex; flex-flow: column nowrap;}
        .header{
            display: flex;
            justify-content: space-around;
            /*width: 99%;*/
            height:6rem;
            /*border: 1px solid #1a23ff;*/
            align-items: center;
        }
        .header > div:first-of-type{
            width: 10%;
            height:4rem;
            /*border: 1px solid #2417ff;*/
            margin-left: 6rem;
        }
        .header > div:nth-of-type(2){
            width: 50%;
            height:4rem;
            /*border: 1px solid #2417ff;*/
            display: flex;
            justify-content: space-evenly;
            font-size: 1.4rem;
            align-items: center;
        }
        .header > div:first-of-type >a:first-of-type >img{
            width: 30px;
            height: 42px;
        }
        .header > div:first-of-type >a:nth-of-type(2) >span{
            font-size: 1.6rem;
            font-weight: bold;
        }
        .active{
            color:#FC7059;
        }
        .banner{
            height: 700px;

            /*border: 1px solid #ff2235;*/
        }
        .banner > a > img{
            width: 100%;
        }
        .main{
            min-height:100vh;
            /*border: 1px solid #3f24ff;*/
        }
        .index-nav-list{
            width:65vw;
            /*border: 1px solid #3f24ff;*/
            padding-top: 7rem;
            margin: 0 auto;
            display: flex;
            justify-content: space-around;
        }
        .index-nav-detail{
            display: flex;
            flex-flow: column nowrap;
            justify-content: center;
            align-items: center;
        }
        .index-nav-detail >img{
            width: 8rem;
        }
        .index-nav-detail > span{
            margin-top: 2.2rem;
            color: #999999;
            font-weight: 500;
            font-family: "Noto Sans SC";
            font-size: 2rem;
            /*font-weight: 100;*/
        }
        .index-cate-one{
            width:65vw;
            /*border: 1px solid #3f24ff;*/
            padding-top: 4rem;
            margin: 0 auto;
        }
        .index-cate-title{
            display: flex;
            flex-flow: column nowrap;
            align-items: center;
            font-weight: 500;
            font-family: "Noto Sans SC";
            font-size: 2rem;
        }
        .index-cate-title > a:last-of-type > img{
            width:4rem;
        }
        .index-cate-title > a:first-of-type >span{
            color: #999999;
        }
        .index-cate-one-list{
            /*display: flex;
            justify-content: space-evenly;*/
            margin-top: 2rem;
            display: flex;
            justify-content:space-around;
        }
        .index-cate-detail{
            width: 11vw;
            /*border: 1px solid #ff0a1e;*/
            display: flex;
            flex-flow: column nowrap;
            /*justify-content: center;*/
            align-items: center;
            background-color: #EFEFEF;
            padding: 0.6rem 0;
            border-radius:6px;
        }
        .index-cate-detail >a:first-of-type > img{
            width:100%;
        }
        .index-cate-detail > a > span{
            font-size: 1.6rem;
            color: #686868;
            margin-bottom: 0.5rem;
        }
        .btn-find-all{
            margin: 2rem auto;
            display: flex;
            justify-content: center;
        }
        .index-cate-two{
            width:65vw;
            /*border: 1px solid #3f24ff;*/
            padding-top: 4rem;
            margin: 0 auto;
        }
        .index-cate-two-list{
            display: flex;
            flex-flow: row wrap;
            justify-content: space-around;
            margin-top: 2rem;
        }
        .index-cate-one-detail{
            margin-top: 2rem;
            max-width:60rem;
        }
        .index-cate-one-detail > a >img{
            width:100%;
        }
        .index-banner-index{
            width: 100%;
            min-height: 25rem;
            margin-top: 5rem;
            /*margin-bottom: 7rem;*/
            /*border: 1px solid #3f24ff;*/
        }
        .index-banner-index > a > img{
            width: 100%;
        }
        .index-cate-three{
            width:100%;
            /*border: 1px solid #3f24ff;*/
            padding-top: 5rem;
            margin: 0 auto;
            background-color: #F1F1F1;
        }
        .index-cate-three-list{
            display: flex;
            justify-content: center;
            /*margin-top: 3rem;*/
        }
        .index-cate-three-detail{
            width:65%;
            background-color: white;
            margin: 2rem auto 5rem;
            min-height: 40vh;
            /*border: 1px solid #100d01;*/
            display: flex;
            justify-content:space-between;
        }
        .index-cate-three-detail > div:first-of-type{
            width:30%;
            min-height: 19vh;
            /*border: 1px solid #3f24ff;*/
            margin: 20vh auto;
            display: flex;
            flex-flow: column wrap;
            /*align-items: center;*/
        }
        .index-cate-three-detail > div:first-of-type > h2{
            font-weight: 500;
            font-family: "Noto Sans SC";
            font-size: 3.5rem;
            color: #333333;
        }
        .index-cate-three-detail > div:first-of-type > div{

            font-size: 2rem;
            margin-top: 1.4rem;
            line-height:4rem;
            font-weight: 500;
            font-family: "Noto Sans SC";
            color: #333333;
        }
        .index-cate-three-detail > div:last-of-type{
            width: 60%;
            height: 100%;
            /*background-color: #0e90d2;*/
        }
        .index-cate-three-detail > div:last-of-type > a > img{
            width:100%;
            height: 100%;
        }
        footer{
            min-height:35vh;
            border: 1px solid #CECECE;
        }
        .footer{
            width: 80%;
            margin: 5rem auto;
            /*border: 1px solid #ce0f16;*/
            display: flex;
            flex-flow: row nowrap;
            justify-content: space-around;
        }
        .footer > div:first-of-type > span,.footer > div:nth-of-type(3) > span{
            font-weight: bold;
        }
        .footer > div:nth-of-type(2) > a,.footer > div:nth-of-type(4) > a{
            display: flex;
            flex-flow: column nowrap;
            /*justify-content: space-around;*/
            margin-bottom: 1.2rem;
            color: #B8B8B8;
        }
        .footer > div:nth-of-type(5),.footer > div:nth-of-type(6),.footer > div:nth-of-type(7){
            display: flex;
            flex-flow: column nowrap;
            justify-content: center;
            align-items: center;
            font-weight: bold;
        }
        .footer > div:nth-of-type(5)>a:first-of-type,.footer > div:nth-of-type(6)>a:first-of-type,.footer > div:nth-of-type(7)>a:first-of-type{
            width: 7rem;
            height: 7rem;
            margin-bottom: 0.5rem;
        }
        .footer > div:nth-of-type(5)>a:first-of-type>img,.footer > div:nth-of-type(6)>a:first-of-type>img,.footer > div:nth-of-type(7)>a:first-of-type>img{
            width: 100%;
            height: 100%;
        }
        .footer > div:nth-of-type(8),.footer > div:nth-of-type(9),.footer > div:nth-of-type(10){
            display: flex;
            flex-flow: column nowrap;
            justify-content: center;
        }
        .footer-footer{
            width: 40rem;
            /*border: 1px solid #ce0f16;*/
            margin: 0 auto;
            color: #9F9F9F;
            font-size: 0.8rem;
        }
    </style>
</head>
<body>
<div class="header">
    <div>
        <a href=""><img src="{$setting.index_logo}" alt=""></a>
        <a href=""><span>七星优购</span></a>
    </div>
    <div>
        {volist name="indexMenu" id="vo"}
            <a href="{$vo.url}">
                <span {if $vo.url eq $url} class="active" {else/} {/if}>{$vo.name}</span>
            </a>
        {/volist}
    </div>
</div>
<div class="banner">
    {volist name="indexMenu" id="vo"}
        {if $vo.url eq $url}
            <a href=""><img src="{$vo.img}" alt=""></a>
        {/if}
    {/volist}
</div>
<div class="main">
    <div class="index-nav-list">
        {volist name="indexNav" id="vo"}
        <a class="index-nav-detail">
            <img src="{$vo.image}" alt="">
            <span>{$vo.title}</span>
        </a>
        {/volist}
        <!--<a class="index-nav-detail">
            <img src="/static/index/image/jishu.png" alt="">
            <span>急速下单</span>
        </a>
        <a class="index-nav-detail">
            <img src="/static/index/image/jishu.png" alt="">
            <span>急速下单</span>
        </a>-->
    </div>
    <div class="index-cate-one">
        <div class="index-cate-title">
            <a href=""><span>SELECT FRUIT</span></a>
            <a href=""><span>精选分类</span></a>
            <a href=""><img src="/static/index/img/line.png" alt=""></a>
        </div>
        <div class="index-cate-one-list">

            {volist name="indexGoodsCate" id="vo"}
                <div class="index-cate-detail">
                    <a href="/index/index/detail/cate_id/{$vo.cate_id}"><img src="{$vo.cate_img}" alt=""></a>
                    <a href="/index/index/detail/cate_id/{$vo.cate_id}"><span>{$vo.cate_name}</span></a>
                </div>
            {/volist}

        </div>
        <div class="btn-find-all">
            <button type="button" onclick="window.location.href='/index/index/detail/cate_id/1'" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius">&nbsp;&nbsp;查看全部&nbsp;&nbsp;</button>
        </div>
    </div>
    <div class="index-cate-two">
        <div class="index-cate-title">
            <a href=""><span>HOT PRODUCTS</span></a>
            <a href=""><span>热门商品</span></a>
            <a href=""><img src="/static/index/img/line.png" alt=""></a>
        </div>
        <div class="index-cate-two-list">
            {volist name="typeGoodsTwo" id="vo"}
            <div class="index-cate-one-detail">
                <a href="/index/index/detail/cate_id/{$vo.cate_id}"><img src="{$vo.image}" alt=""></a>
            </div>
            {/volist}
        </div>
        <div class="btn-find-all">
            <button type="button" onclick="window.location.href='/index/index/detail'" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius">&nbsp;&nbsp;查看全部&nbsp;&nbsp;</button>
        </div>
    </div>
    <div class="index-banner-index">
        <a href=""><img src="/static/index/img/banner2.png" alt=""></a>
        <!-- 取消轮播
        <div class="layui-carousel" id="test2" style="margin-top: 15px;">
             <div carousel-item="">
                 <div><a href=""><img src="./img/banner2.png" alt=""></a></div>
                 <div><a href=""><img src="./img/banner2.png" alt=""></a></div>
             </div>
         </div>-->
    </div>
    <div class="index-cate-three">
        <div class="index-cate-title">
            <a href=""><span>SELECT GOOD THINGS</span></a>
            <a href=""><span>精选好物</span></a>
            <a href=""><img src="/static/index/img/line.png" alt=""></a>
        </div>
        <div class="index-cate-three-list">
            {if !empty($typeGoodsThree.0)}
            <div class="index-cate-three-detail">
                <div>
                    <h2>{$typeGoodsThree.0.name}</h2>
<!--                    <h2>西柚</h2>-->
                    <div>{$typeGoodsThree.0.descr}</div>
                </div>
                <div>

                    <a href="/index/index/detail/{$typeGoodsThree.0.cate_id}"><img src="{$typeGoodsThree.0.image}" alt=""></a>

                </div>
            </div>
            {/if}
        </div>
    </div>
</div>
<footer>
    <div class="footer">

        <div>
            <span>关于七星优购</span>
        </div>

        <div>
            {volist name="setting.about" id="vo"}
                <a href="javascript:;">{$vo}</a>
            {/volist}
        </div>

        <div>
            <span>关于我们</span>
        </div>

        <div>
            {volist name="setting.about_we" id="vo"}
            <a href="">{$vo}</a>
            {/volist}
        </div>


        <div>
            <a href=""><img src="{$setting.wxgzh}" alt=""></a>
            <a href="">微信公众号</a>
        </div>

        <div>
            <a href=""><img src="{$setting.app}" alt=""></a>
            <a href="">安卓版APP下载</a>
        </div>

        <div>
            <a href=""><img src="{$setting.wxxcx}" alt=""></a>
            <a href="">小程序下载</a>
        </div>

        <div><a href=""><img src="{$setting.wb}" alt=""></a></div>
        <div><a href=""><img src="{$setting.qq}" alt=""></a></div>
        <div><a href=""><img src="{$setting.wx}" alt=""></a></div>
    </div>
    <div class="footer-footer">
        <span>{$setting.name} </span>
    </div>
</footer>

</body>
</html>